﻿using Newtonsoft.Json.Linq;
partial class Program
{
    static void JsonParser()
    {
        var jToken = Newtonsoft.Json.Linq.JToken.Parse("{\"normal\":\"1\",\"map\":{\"0\":\"未上电\",\"1\":\"已上电\",\"2\":\"强制关机\"}}");
        var normalVal = jToken.Value<string>("normal");
        var mapList = jToken["map"].OfType<Newtonsoft.Json.Linq.JProperty>().ToDictionary(x => x.Name, x => x.Value.Value<string>());
    }
}
